//
//  kqy4meViewController.m
//  百思不得姐os1
//
//  Created by kqy on 8/1/16.
//  Copyright © 2016 kqy. All rights reserved.
//

#import "kqy4meViewController.h"
#import "meSettingTableViewController.h"

@interface kqy4meViewController ()

@end

@implementation kqy4meViewController
- (instancetype)init {
    return [self initWithStyle:UITableViewStylePlain];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kqyRandomColor;
    // Do any additional setup after loading the view.
    [self setupBarButtonItem];
    [self setupTabView];
}

- (void)setupTabView {
    self.tableView.sectionFooterHeight = 23;
}

- (void)setupBarButtonItem {
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem buttonItemTitle:@"setting" andImage:@"mine-setting-icon" andSelectedImage:@"mine-setting-icon-click" andAction:@selector(settingClick) andTarger:self];
}

- (void)settingClick {
    meSettingTableViewController *meSettingVC = [[meSettingTableViewController alloc] init];
    [self.navigationController pushViewController:meSettingVC animated:YES];
    
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 2;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    //
    //
    return 1;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *identifier = @"cellIdentifier";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
    }
    cell.textLabel.text  = @"testCell";
    return cell;
}

@end
